<?php
// +----------------------------------------------------------------------
// | ThinkSNS
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://www.thinksns.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: nonant <nonant@thinksns.com>
// +----------------------------------------------------------------------
//
//
//  中文动态模板列表。
//
//  return array(
//	'space_upbaseinfo' => array(
//		'title'    =>   "{actor} 更新了基本资料",
//		'info'     =>   "更新资料",
//		'body'     =>   '',
//		//'comment_type' => ""
//	),
//
//);
//
if(!function_exists('getFileLists')){
	function getFileLists($num,$names,$fids,$gid,$shownum=10){
		$i=0;
		foreach($fids as $key=>$value){
			if ($i<$shownum) {
				$html.="<a href=\"".U('group/File/detail',array('gid'=>$gid,'fid'=>$value))."\">$names[$key]</a>&nbsp;&nbsp;";
			}else{
				$html.="&nbsp;...";break;
			}
			
		}
		return $html;
	}
}

return array(
	'space_record' => array(
		'title'    =>   "<span class='band_C_C'>{$actor}：{$content} </span>",
		'info'     =>   "更新记录",
		'comment_type' => "record"
	),
	'space_follow' => array(
		'title'    =>   "{$actor} 关注了  <a href='".U('space/view','uid='.$followuid)."'>{$followuname}</a>",
		'info'     =>   "关注同事",
	),
	'space_follow_much' => array(
		'title'    =>   "{$actor} 关注了  {$followuname} 等{$countnum}名同事",
		'info'     =>   "关注导入同事",
	),	
	'ask_post' => array(
		'title'    =>   "{$actor} 发起了一个问题
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_C'>{$content}</div><div class='R_att'><a href={$url}>参与回答</a></div>",
		'info'     =>   "发布问题",
	),

	'ask_replay' => array(
		'title'    =>   "{$actor} 回答了问题
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div>",
		'info'     =>   "回复问题",

	),
	
	'blog_post' => array(
		'title'    =>   "{$actor} 发表了一篇博文
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_B band_C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "发布博文",
	),
	
	'blog_comment' => array(
		'title'    =>   "{$actor} 评论了 {$user} 的{$appName}
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div>",
		'info'     =>   "评论博文",
	),
	
	'wiki_post' => array(
		'title'    =>   "{$actor} 发起了一个词条
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "发布词条",
	),
	
	'wiki_comment' => array(
		'title'    =>   "{$actor} 评论了 {$user} 的{$appName}
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div>",
		'info'     =>   "评论百科",
	),
	

	'ask_setBest' => array(
		'title'    =>   "{$actor} 将 {$user} 的回答设置为最佳答案
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div><div class='R_att'><a href={$url}>查看详情</a></div>",
		'info'     =>   "设置最佳答案",
	),

	'ask_appendScore' => array(
		'title'    =>   "{$actor} 提高了问题的悬赏
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_C'>{$content}</div><div class='R_att'><a href={$url}>参与回答</a></div>",
		'info'     =>   "提高问题悬赏",
	),

	'share_ask' => array(
		'title'    =>   "{$actor} 分享了一个问题
						<span class='roow_dyn L'><a href='".U('ask/index/detail','id='.$aimId)."'>{$title}</a></span>
						<div class='p_c C_C'>{$intro}</div>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('ask/index/detail','id='.$aimId)."'>参与回答</a></div>
						",
		'info'     =>   "分享问题",
	),
	
	'share_blog' => array(
		'title'    =>   "{$actor} 分享了一篇博文
						<span class='roow_dyn'><a href='".U('blog/index/detail',array('id'=>$aimId,'uid'=>$fromUid))."'>{$title}</a></span>
						<div class='p_c C_C'>{$intro}</div>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('blog/index/detail',array('id'=>$aimId,'uid'=>$fromUid))."'>去看看</a></div>
						",
		'info'     =>   "分享博文",
	),
	
	'share_wiki' => array(
		'title'    =>   "{$actor} 分享了一个词条
						<span class='roow_dyn'><a href='".U('wiki/Index/detail','id='.$aimId)."'>{$title}</a></span>
						",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('wiki/Index/detail','id='.$aimId)."'>去看看</a></div>
						",
		'info'     =>   "分享词条",
	),	
	
	/*************************   团队空间动态开始 *******************/
	'group_join' => array(
		'title'   => "{$actor}  加入了团队  <private>[ {$APPLINK} ]</private>",
		'info'    => "加入团队",
		'private' => true,    //私有动态模板
	),	
	
	'group_invite' => array(
		'title'   => "{$actor} 接受  <a href='".U('space/View/index',array('uid'=>$inviteuser))."' target='_blank'>".getUserName($inviteuser)."</a> 的邀请 加入了团队  <private>[ {$APPLINK} ]</private>",
		'info'    => "加入团队",
		'private' => true,
	),
	
	'group_forum' => array(
		'title'   => "{$actor} <private>在团队 [ {$APPLINK} ] </private>发表了一个讨论   <span class='s_t'><a href='".U('group/Forum/detail',array('tid'=>$tid,'gid'=>$gid))."'>{$title}</a></span>",
		'title_template' => " <a href='".U('group/Forum/detail',array('tid'=>$tid,'gid'=>$gid))."'>{$title}</a>",
		'body'	   =>  infoCss($info)."<div class='R_att'><a href='".U('group/Forum/detail',array('tid'=>$tid,'gid'=>$gid))."'>去看看</a></div>",
		'private' => true,
	),	

	'group_file' => array(
		'title'   => "{$actor} <private>在团队空间 [{$APPLINK}]</private> 上传了{$num}个文件",   
		'body'	  => "<div class='C_C'>".getFileLists($num,$names,$fids,$gid)."</div>",               
		'title_template'   =>"上传了{$num}个文件",                  
		'info'    => "上传团队文件",
		'private' => true,
	),
	
	'group_blog' => array(
		'title'    =>   "{$actor} <private>在团队空间 [{$APPLINK}] </private>发表了一篇博文
						<span class='s_t'>{$title}</span>",
		'title_template' => "{$title}",
		'body'	   =>   "<div class='C_B band_C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "发布博文",
		'private' => true,
	),	
	
	'group_share_blog' => array(
		'title'    =>   "{$actor} 分享了团队 <private>空间 [{$APPLINK}] 的</private>一篇博文 
						<span class='roow_dyn'><a href='".U('group/blog/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a></span>
						<span>{$intro}</span>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('group/blog/detail',array('id'=>$aimId,'gid'=>$gid))."'>去看看</a></div>
						",
		'info'     =>   "分享团队博文",
		'private' => true,
	),	
	
	'group_share_wiki' => array(
		'title'    =>   "{$actor} 分享了一个团队 <private>[{$APPLINK}]的</private> 词条
						<span class='roow_dyn'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a></span>
						",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>去看看</a></div>
						",
		'info'     =>   "分享团队词条",
		'private' => true,
	),
	
	'group_wiki' => array(
		'title'    =>   "{$actor} 在团队 <private>[{$APPLINK}]</private> 创建了一个词条
						<span class='roow_dyn'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a></span>
						",
		'title_template' => "<a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a>",
		'body'	   =>   "<div class='C_B band_C_C'></div><div class='R_att'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>去看看</a></div>",
		'info'     =>   "创建团队词条",
		'private' => true,
	),
	
	'group_reply' => array(
		'title'    =>   "{$actor} 在团队空间<private>[{$APPLINK}] </private>中的{$title}发表了评论",
		'title_template' => "{$title}",
		'body'	   =>   "<div class='C_B band_C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "发表评论",
		'private' => true,
	),
	/*************************   团队空间动态结束 *******************/
	
	'bbs_topic' => array(
		'title'    =>   "{$actor} 在论坛 [ {$board} ] 发表一个主题
						<span class='roow_dyn'><a href='".U('bbs/Index/detail',array('id'=>$tid))."'>{$title}</a></span>
						",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('bbs/Index/detail',array('id'=>$tid))."'>去看看</a></div>",
		'info'     =>   "发表主题",
	),
	
	'share_topic' => array(
		'title'    =>   "{$actor} 在论坛中分享一个主题
						<span class='roow_dyn'><a href='".U('bbs/Index/detail',array('id'=>$aimId))."'>{$title}</a></span>
						<div class='p_c C_C'>{$intro}</div>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('bbs/Index/detail',array('id'=>$aimId))."'>去看看</a></div>",
		'info'     =>   "分享主题",		
	),	
);
?>